package com.wh.wisdomsite.xbox.ba.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;

/***
 * xbox框架-App应用注册方法
 * @Package com.wh.wisdomsite.xbox.ba.entity
 * @author 谢泽鹏
 * @date 2016年11月07日 下午15:10
 * @Copyright 个人版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 * @version V1.0
 */
@TableName("xbox_app_method")
public class AppMethod extends Model<AppMethod> {

    /**
     * 服务编号
     */
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 服务方法[带版本]
     */
    @TableField("T_METHOD")
    private String method;

    /**
     * 调用频率[每分钟的次数]
     */
    @TableField("T_RATE")
    private Integer rate;

    /**
     * 总调用次数
     */
    @TableField("T_TIMES")
    private Integer times;

    /**
     * 创建时间
     */
    @TableField("T_CREATE_DATE")
    private Date createDate;

    /**
     * 修改时间
     */
    @TableField("T_UPDATE_DATE")
    private Date updateDate;

    /**
     * appKey秘钥
     */
    @TableField("T_APP_KEY")
    private String appKey;

    /**
     * 状态[1启用，0禁用]
     */
    @TableField("T_STATUS")
    private Integer status;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMethod() {
        return this.method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Integer getRate() {
        return this.rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public Integer getTimes() {
        return this.times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Date getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return this.updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}